// app.js
require('./utils/leancloud-init')
import fly from './utils/request'
import tools from './utils/tools'
App({
  onLaunch() {
    // 尝试提取本地存储用户信息
    try {
        var value = wx.getStorageSync('userInfo')
        if (value) {
            // Do something with return value
            this.globalData.userInfo = value
        }
    } catch (e) {
    // Do something when catch error
    }
  },
  globalData: {
    userInfo: null
  },
  fly,
  ...tools
})
